package Demo.demo16;

import java.util.Scanner;

public class Person {
    String username;
    Scanner input = new Scanner(System.in);
    public int showUserFist(){
        System.out.println("请输入你的出拳：1.剪刀 2.石头 3.布");
        int userFist = input.nextInt();
        switch(userFist){

            case 1:
                System.out.println("你出拳：剪刀");
                break;
            case 2:
                System.out.println("你出拳：石头");
                break;
            case 3:
                System.out.println("你出拳：布");

        }

        return userFist;
    }
}
